package muse.widgets;

import java.awt.*;
import javax.swing.JPanel;

public class JournalWidget extends Widget {

    Toolkit tk = Toolkit.getDefaultToolkit();
    Image Img = tk.getImage(getClass().getClassLoader().getResource("muse/resources/muse_journalBG_dummy.png"));
    public JournalWidget()
    {
        this.setLayout(new BorderLayout());

        JPanel all = new JPanel(){
            public void paintComponent(Graphics g)
            {

                g.drawImage(Img, getWidth()/2 - Img.getWidth(null)/2, getHeight()/2 - Img.getHeight(null)/2, 154, 150, null);
            }
        };

        this.add(all);
    }
	@Override
	public Dimension getPreferredSize() {
		return new Dimension(148,148);
	}

	@Override
	public String getIcon() {
		return "";
	}
}
